package com.zld.smarket.dao;

import com.zld.smarket.dto.StockoutList;
import com.zld.smarket.pojo.Stockout;
import java.util.List;

public interface StockoutMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Stockout record);

    Stockout selectByPrimaryKey(Long id);

    List<Stockout> selectAll();

    int updateByPrimaryKey(Stockout record);

    List<StockoutList> selectAllAndPage(Integer page, Integer limit);

    List<StockoutList> search(String s, Integer page, Integer limit);

    Long countbyno(Long stockoutNo);

    Integer reduceSurplus(Long stockoutId, Long shelvesonNum);

    Long countStockout();
}